/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.visualjavafxgui.editor;

import org.openide.windows.IOProvider;
import org.openide.windows.InputOutput;
import org.openide.windows.OutputWriter;

/**
 *
 * @author psychollek
 */
public class OutputWindow {

    private static InputOutput io = IOProvider.getDefault().getIO("Visual JavaFx Editor output", true);
    private static OutputWriter w = io.getOut();

    public static void println(String s){
        io.select();
        w.println(s);
    }

    public static void print(String s){
        io.select();
        w.print(s);
    }

    public static void println(Object o){
        io.select();
        w.println(o);
    }

    public static void print(Object o){
        io.select();
        w.print(o);
    }

    public static void println(int i){
        io.select();
        w.println(i);
    }

    public static void print(int i){
        io.select();
        w.print(i);
    }

    public static void println(double d){
        io.select();
        w.println(d);
    }

    public static void print(double d){
        io.select();
        w.print(d);
    }

    public static OutputWriter getOut(){
        return w;
    }

}
